package com.mofeng.myshop.controller.portal;


import com.mofeng.myshop.service.IUserRoleService;
import com.mofeng.myshop.until.R;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户角色表/会员等级 前端控制器
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-21
 */
@RestController
@RequestMapping("/portal/user-role")
@RequiredArgsConstructor
public class UserRolePortalController {

    private final IUserRoleService userRoleService;

    @Operation(summary = "获取权限列表")
    @GetMapping("/list")
    public R getRoleList() {
        return userRoleService.getRoleList();
    }

}

